﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using Common.Util;
using System.Threading.Tasks;

namespace SMECustomerWebsite.Models.Models
{
    public partial class Account
    {
        [NotMapped]
        public Guid GuidKey { get { return new Guid(this.ApplicationKey); } }

        [NotMapped]
        public bool IsActive { get { return Active.IsYes(); } }

        public AccountInfo AccountInfo { get; set; }

        public ApplicationGroup Group { get; set; }
    }
}
